package demo04;

public class CommonLock {
	public boolean flag = false;
	public static final Object sharedLock = new Object();
	public boolean isFlag() {
		return flag;
	}
	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	public static Object getSharedlock() {
		return sharedLock;
	}
	
}
